#include <iostream>
#include <memory>

using namespace std;

void del(int *p)
{
    delete p;
    cout << "del" << endl;
}
void test()
{
    //这种方式不能指定删除器。
    //std::shared_ptr<int> t = std::make_shared<int>(1, del);
    std::shared_ptr<int> t1(new int(1), del);
}



int main(int argc, char *argv[])
{
    test();
    return 0;
}
